<?php 
namespace app\manage\validate;
use think\Validate;


class Login extends Validate
{
    protected $rule = [
        'username'  =>  'require|max:25',
        'password' =>  'require',
        'verify' => 'require|max:4|min:4',
    ];

    protected $message  =   [
        'username.require' => '请填写用户名！',
        'username.max' => '名称长度不得超过25位！',
        'password.require'     => '请填写密码！',
        'verify.require'     => '验证码不得为空！',
        'verify.max'     => '验证码长度必须是四位！',
        'verify.min'     => '验证码长度必须是四位！',   
    ];

}


?>